<?php

	if($_SERVER['SERVER_NAME'] == 'localhost'){
		$db['host'] = 'localhost';
	    $db['user'] = 'root';
	    $db['pwd'] = '';
	    $db['table'] = 'todo';
	} else {

	}
    
    define('TABLE_PREFIX', 'td_');
    
    mysql_connect($db['host'], $db['user'], $db['pwd']) or die (mysql_error());
    mysql_select_db($db['table']);
	mysql_set_charset('utf8');
?>